package com.chain.impl;

import com.chain.Manager;
import com.chain.Request;

public class GeneralManager extends Manager {

	public GeneralManager(String name) {
		super(name);
	}

	@Override
	public void requestApplications(Request request) {
		if (request.getRequestType().equals("请假")) {
			System.out.println(name + ": " + request.getRequestContent()
					+ ", 数量： " + request.getNumber() + "被批准");
		} else if (request.getRequestType().equals("加薪")
				&& request.getNumber() <= 500) {
			System.out.println(name + ": " + request.getRequestContent()
					+ ", 数量： " + request.getNumber() + "被批准");
		} else {
			System.out.println("再说吧");
		}
	}

}
